package com.guigu.pojo.manufacture;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mr.Zhang
 * @since 2024-12-06
 */
@Data
@TableName("M_PROCEDURE_MODULE")
public class MProcedureModule implements Serializable {

    private static final long serialVersionUID=1L;

    //@apiModelProperty(value = "序号，唯一标识生产工序物料表记录，自增长")
      @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    //@apiModelProperty(value = "父级序号，关联生产工序表，不可为空，构建工序与物料关联")
    @TableField("PARENT_ID")
    private Integer parentId;

    //@apiModelProperty(value = "工序物料序号，不可为空，标识物料在工序中的顺序")
    @TableField("DETAILS_NUMBER")
    private Integer detailsNumber;

    //@apiModelProperty(value = "物料编号，不可为空，关联物料信息，确保物料准确性")
    @TableField("PRODUCT_ID")
    private String productId;

    //@apiModelProperty(value = "物料名称，可空，辅助识别物料")
    @TableField("PRODUCT_NAME")
    private String productName;

    //@apiModelProperty(value = "物料单价，可空，确定物料价值，计算物料成本基础")
    @TableField("COST_PRICE")
    private BigDecimal costPrice;

    //@apiModelProperty(value = "设计数量，可空，规划工序所需物料量，物料准备参考")
    @TableField("AMOUNT")
    private BigDecimal amount;

    //@apiModelProperty(value = "已从库存领料数量，可空，跟踪物料实际领用情况")
    @TableField("RENEW_AMOUNT")
    private BigDecimal renewAmount;

    //@apiModelProperty(value = "实际使用数量，可空，统计工序实际消耗物料量，成本核算与库存调整依据")
    @TableField("REAL_AMOUNT")
    private BigDecimal realAmount;

    //@apiModelProperty(value = "设计物料成本小计，可空，计算设计物料成本，AMOUNT * COST_PRICE")
    @TableField("SUBTOTAL")
    private BigDecimal subtotal;

    //@apiModelProperty(value = "实际物料成本小计，可空，计算实际物料成本，REAL_AMOUNT * COST_PRICE")
    @TableField("REAL_SUBTOTAL")
    private BigDecimal realSubtotal;


}
